package cn.cocho.android.mc.comp.util;

import android.view.MotionEvent;
import android.view.View;

public class CompUtils {

	/**
	 * 自定义控件的命名空间
	 */
//	public static String NS_TBC = "http://schemas.android.com/apk/res/" + ApplicationCache.context.getPackageName();
//	public static String NS_TBC = "http://schemas.android.com/apk/res/cn.cocho.android.workflow";
//	public static String NS_TBC = "http://schemas.android.com/apk/res/cn.cocho.android.defaults";
	public static final int DISABLE = 0;
	
	
	/**
	 * 判断该次点击操作是否有效
	 * 
	 * @param event
	 * @return true:有效；false:无效
	 * @author yzl
	 * @time 2013-4-28上午10:57:33
	 */
	public static boolean isClick(MotionEvent event, View view) {
		return event.getX() > 0 && event.getY() > 0 && event.getX() < view.getWidth() && event.getY() < view.getHeight();
	}
	
	

}
